package com.xrtn.mapper;

import com.xrtn.bean.TCouponUsrRel;

import java.util.List;
import java.util.Map;

public interface TCouponUsrRelMapper {
    int deleteByPrimaryKey(Integer relId);

    int insert(TCouponUsrRel record);

    int insertSelective(TCouponUsrRel record);

    TCouponUsrRel selectByPrimaryKey(Integer relId);

    List<TCouponUsrRel> selectByCouponId(Integer couponId);

    List<Map<String,Object>> selectByMap(Map<String,Object> params);

    List<TCouponUsrRel> selectByMaps(Map<String,Object> params);

    List<Map<String,Object>> selectByUserIdAndIsUsed(Map<String,Object> params);

    int updateByPrimaryKeySelective(TCouponUsrRel record);

    int updateByPrimaryKey(TCouponUsrRel record);
}